package com.hz.ruoyilgorder.api.service;

import com.hz.rouyigonggong.utils.ResultJSON;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @version 1.0
 * @Author yzw
 * @Date 2025/3/6 14:33
 * @注释 调用车辆
 */
@FeignClient(value = "ruoyi-motor",path = "/api")
public interface LgCar {

    @RequestMapping("/getAll")
    public ResultJSON getAll(
            @RequestParam(value ="vehicleType" ,required = false) String vehicleType,
            @RequestParam(value = "vehicleLength", required = false) Double vehicleLength,
            @RequestParam(value = "vehicleVolume", required = false) Double vehicleVolume,
            @RequestParam(value = "licensePlate", required = false) String licensePlate,
            @RequestParam(value = "licenseType", required = false) Integer licenseType,
            @RequestParam("vehicleStatus") Integer vehicleStatus,
            @RequestParam("pageNum") Integer pageNum,
            @RequestParam("pageSize") Integer pageSize,
            @RequestParam("createBy") String createBy
    );
    @GetMapping("/list")
    public AjaxResult getAlldriver(@RequestParam("params") Map<String, Object> params,
                                   @RequestParam("pageNum") Integer pageNum,
                                   @RequestParam("pageSize") Integer pageSize);
    //获取司机总数
    @GetMapping("/getTotalDriver")
    public int getTotalDriver();
    //    获取车辆总数
    @GetMapping("/getTotalVehicle")
    public int getTotalVehicle();

}
